package edu.gatech.cs2340.bytebankers.model;

import java.awt.Point;
import java.io.Serializable;

public class Location implements Serializable {

	private String name;
	private int lat,lon, distNext, xCor, yCor;
	private Location nextLocation;
	private Point point;
	private boolean hasStore;
	
	public Location() {
		
	}
	
	public Location(String n, Location next, int dist,
			int latitude, int longitude, boolean hasStore){
		this.name = n;
		this.nextLocation = next;
		this.distNext = dist;
		this.lat = latitude;
		this.lon = longitude;
		this.hasStore = hasStore;
	}

	public int getLat() {
		return lat;
	}
	
	public boolean hasStore() {
		return hasStore;
	}

	public int getLon() {
		return lon;
	}

	public Location getNextLocation() {
		return nextLocation;
	}


	public int getDistNext() {
		return distNext;
	}


	public Point getCoordinates(){
		Point coordinates = new Point();
		coordinates.x = lat;
		coordinates.y = lon;
		return coordinates;
	}

	public int getDistanceToNext()
	{
		return distNext;
	}
	
	public void setDistNext(int distance){
		distNext = distance;
		
	}
	
	public String getName(){
		return name;
	}
}
